<?php

// bkt_create.php
// Michael Baker
// 2010.07.23
//
// Create thresholding bracket

session_start();

define("IN_MDM", true);
define("CUR_PAGE_TITLE", "Create thresholding bracket");
define("CUR_FLAG", "bkt.create");

include '../includes/all.php';
include 'inc/header.php';

try {
  $id = $dbase->add_thresholding_category( "Untitled" );
}
catch (DatabaseException $e) {
  $_SESSION["MESSAGE"] = array(1, "Unexpected error");
}

// redirect user to bracket list
header( "Location: bkt_list.php" );

?>